package com.jxc.dao;

import java.util.List;
import com.jxc.entity.TbRole;
import com.jxc.entity.TbEmployeeRole;
/**
 * funtion:role操作接口相关 author：zhuqiufa 创建时间2010-6-11
 */
public interface role {
	public abstract List QueryRoleList();//角色列表
	public abstract List QueryRoleListForPage(int start, int limit);//角色列表
	public abstract boolean RemoveRole(int id);//删除
	public abstract boolean SaveRole(TbRole tbRole);
	public abstract boolean SaveEmployeeRole(TbEmployeeRole tbEmployeeRole);
	public abstract  boolean RemoveEmployeeRole(TbEmployeeRole tbEmployeeRole);
	public abstract TbRole QueryRoleByID(Integer ID);
	public abstract boolean RoleIsExistByName(String name);//通过角色查询列表数据
	public abstract List QueryRoleListByName(String name);//通过角色查询列表数据
	public abstract int QueryRoleTotalRecord();//角色总记录
	public abstract boolean UpdateRole(TbRole tbRole);//角色总记录
	public abstract boolean UpdateEmployeeRole(TbEmployeeRole tbEmployeeRole);//角色总记录
	public abstract List QueryEmployeeRoleListByUserID(int userID);//通过角色查询列表数据
	public abstract List QueryRoleListForByWhere(String strWhere);//角色列表
}
